export const largeScreenConfigList = ['沃莱特车间看板', '云雀车间看板', '星卡-产线看板'];

export const largeScreenConfigOption = {
  沃莱特车间看板: [
    {
      label: '工单号',
      prop: 'workOrderNo'
      // rules: [
      //     {
      //         required: true,
      //         message: '请输入工单号',
      //         trigger: 'blur'
      //     }
      // ]
    },
    {
      label: '日期范围',
      prop: 'daterange',
      type: 'daterange',
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
      startPlaceholder: '日期开始范围自定义',
      endPlaceholder: '日期结束范围自定义',
      rules: [
        {
          required: true,
          message: '请输入日期范围',
          trigger: 'blur'
        }
      ]
    }
  ],
  云雀车间看板: [
    {
      label: '工单号',
      prop: 'workOrderNo'
    },
    {
      label: '日期范围',
      prop: 'daterange',
      type: 'daterange',
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
      startPlaceholder: '日期开始范围自定义',
      endPlaceholder: '日期结束范围自定义',
      rules: [
        {
          required: true,
          message: '请输入日期范围',
          trigger: 'blur'
        }
      ]
    }
  ],
  '星卡-产线看板': [
    {
      label: '车间',
      prop: 'workshopId',
      type: 'select',
      dicUrl: '/api/mes-admin/workshop/key-value',
      cascader: ['lineId'],
      props: {
        label: 'workshopName',
        value: 'workshopId'
      },
      rules: [
        {
          required: true,
          message: '请选择车间',
          trigger: 'change'
        }
      ]
    },
    {
      label: '产线',
      prop: 'lineId',
      type: 'select',
      props: {
        label: 'lineName',
        value: 'lineId'
      },
      dicUrl: `/api/mes-product/productionline/get-line-list-by-workshop-id?workshopId={{workshopId}}`,
      rules: [
        {
          required: false,
          message: '请选择产线',
          trigger: 'change'
        }
      ]
    }
  ]
};
